package com.gitee.kenewstar.migration.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.kenewstar.migration.constants.Const;
import lombok.Data;

/**
 * @author kenewstar
 */
@Data
@TableName(value = "hpfm_code_rule_dist", schema = Const.HZERO_PLATFORM)
public class CodeRuleDist {

    @TableId(type = IdType.AUTO)
    private Long ruleDistId;
    private Long ruleId;
    private String levelCode;
    private String levelValue;
    private Integer usedFlag;
    private Integer enabledFlag;
    private String description;
    private Long tenantId;

    @TableField(exist = false)
    private Long distId;

    public void dataFix() {
        this.distId = this.ruleDistId;
    }

}
